import React, { Component } from 'react'
import { withRouter } from 'react-router-dom'
import './less/Goback.less'
class Goback extends Component {
  render() {
    return (
      <div className='goback_btn' onClick={this.gobackFn.bind(this)}>返回上一页</div>
    )
  }
  gobackFn(){
    this.props.history.go(-1)
  }
}

export default withRouter(Goback)
